package com.sanxiau.dormitory.yang.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;


public class Attendance {
    private int id;
    private String stu_id;
    private String stu_name;
    private String stu_sex;
    private String hou_id;
    private String dor_id;
    private String stu_study;
    private String stu_class;
    private String stu_cname;
    private Date check_time;

    public Attendance() {
    }

    public Attendance(int id, String stu_id, String stu_name, String stu_sex, String hou_id, String dor_id, String stu_study, String stu_class, String stu_cname, Date check_time) {
        this.id = id;
        this.stu_id = stu_id;
        this.stu_name = stu_name;
        this.stu_sex = stu_sex;
        this.hou_id = hou_id;
        this.dor_id = dor_id;
        this.stu_study = stu_study;
        this.stu_class = stu_class;
        this.stu_cname = stu_cname;
        this.check_time = check_time;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getStu_id() {
        return stu_id;
    }

    public void setStu_id(String stu_id) {
        this.stu_id = stu_id;
    }

    public String getStu_name() {
        return stu_name;
    }

    public void setStu_name(String stu_name) {
        this.stu_name = stu_name;
    }

    public String getStu_sex() {
        return stu_sex;
    }

    public void setStu_sex(String stu_sex) {
        this.stu_sex = stu_sex;
    }

    public String getHou_id() {
        return hou_id;
    }

    public void setHou_id(String hou_id) {
        this.hou_id = hou_id;
    }

    public String getDor_id() {
        return dor_id;
    }

    public void setDor_id(String dor_id) {
        this.dor_id = dor_id;
    }

    public String getStu_study() {
        return stu_study;
    }

    public void setStu_study(String stu_study) {
        this.stu_study = stu_study;
    }

    public String getStu_class() {
        return stu_class;
    }

    public void setStu_class(String stu_class) {
        this.stu_class = stu_class;
    }

    public String getStu_cname() {
        return stu_cname;
    }

    public void setStu_cname(String stu_cname) {
        this.stu_cname = stu_cname;
    }

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    public Date getCheck_time() {
        return check_time;
    }

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    public void setCheck_time(Date check_time) {
        this.check_time = check_time;
    }

    @Override
    public String toString() {
        return "Attendance{" +
                "id=" + id +
                ", stu_id='" + stu_id + '\'' +
                ", stu_name='" + stu_name + '\'' +
                ", stu_sex='" + stu_sex + '\'' +
                ", hou_id='" + hou_id + '\'' +
                ", dor_id='" + dor_id + '\'' +
                ", stu_study='" + stu_study + '\'' +
                ", stu_class='" + stu_class + '\'' +
                ", stu_cname='" + stu_cname + '\'' +
                ", check_time=" + check_time +
                '}';
    }
}
